package com.aps.algorithm.heuristic.genetic;


import com.aps.algorithm.core.AlgorithmParameters;
import com.aps.algorithm.heuristic.GeneticAlgorithmStrategy;
import com.aps.algorithm.heuristic.GeneticStrategyParams;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author jsy
 * @description: 默认方法
 * @date 2025/9/29 09:19
 */
@Slf4j
@Component
public class GeneticDefaultAlgorithm extends GeneticAlgorithmStrategy {
    @Override
    protected String getStrategyType() {
        return "default";
    }

    @Override
    public void setParameters(AlgorithmParameters parameters) {
        this.parameters = parameters; // 直接赋值父类的parameters字段
    }

    @Override
    public double calSingleChromosome(GeneticStrategyParams params) {
        return 0;
    }
}
